<?php
function GetUserID($userName)
{
	$sql = "select * from lib_user where lib_user_name = '$userName'";
	$result = mysqli_query($GLOBALS['DB'], $sql);
	$row = mysqli_fetch_assoc($result);
	$userID = $row['lib_user_id'];
	return $userID;
}
?>